package com.restaurant.application.score.support;

import com.nebutown.base.data.ViewUpdate;
import com.nebutown.supporthome.AbstractImpl;
import com.nebutown.supporthome.CmdCapsule;
import com.restaurant.application.score.Score;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public abstract class AbstractScore extends AbstractImpl implements Score {

    private static final Logger logger = LoggerFactory.getLogger(Score.class);

    public final Class<?> getEffectiveInterface() {
        return Score.class;
    }

    public Logger getLogger() {
        return logger;

    }

    private static final String privateDataType = "ScoreData";

    public ScoreData getData() {
        return escort.getData(ScoreData.class);
    }

    public void setData(ScoreData data) {
        escort.setData(data);
    }

    public static CmdCapsule CMD_SAVE = new CmdCapsule("save", 0, ScoreData.class);

    public abstract ViewUpdate save(ScoreData save, int[] seq);

    public static CmdCapsule CMD_CANCEL = new CmdCapsule("cancel", 1, null);

    public abstract ViewUpdate cancel(int[] seq);
}
